<?php 

$this->pageTitle=Yii::app()->name . ' - '. "Restaurar Senha";
?>

<h3 align="center"><?php echo "Restauração de Senha"; ?></h3>
<br/><br/>
<?php if(Yii::app()->user->hasFlash('recoveryMessage')): ?>

<div class="success">
<?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>

</div>

<?php else: ?>

<div class="form">
<?php echo CHtml::beginForm(); ?>

	<?php echo CHtml::errorSummary($form); ?>
	
	<div class="row" align="center">
		<p><?php echo"Digite o Nome do Usuário ou Email:"; ?>
		<?php echo CHtml::activeTextField($form,'login_or_email', array('class' => 'span-8')) ?></p>
		
	</div>
	<br/>
	<div align="center" class="form-actions" style="margin-left:50px;">
	<?php 
	$this->widget('bootstrap.widgets.TbButton', array(
		'buttonType'=>'link',
		'type'=>'primary',
		'label'=>' Voltar ',
		'htmlOptions'=>array('submit' => 'http://'.
			$_SERVER['HTTP_HOST'].Yii::app()->request->baseUrl.
			'/index.php',
	))); 
	echo " ";
	?>
	<?php 
	$this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>'Restaurar',
	)); 
	?>
	</div>


<?php echo CHtml::endForm(); ?>
</div><!-- form -->
<?php endif; ?>